def input_number():
    L = []
    while True:
        n = int(input("please input a number. if input -1,it will breank"))
        if n==-1:
            return L
        else:
            L.append(n)
L = input_number()
print(L)
print("序列和：",sum(L))
def max(a,b):
    return a if a>b else b
print("maximum:",max(*L))